package com.admin.exam.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.admin.base.Page;
import com.admin.base.Paging;
import com.admin.exam.entity.Hospital;
import com.admin.exam.vo.query.HospitalQuery;

/**
 * 操作相关
 */
@Repository
public interface HospitalMapper {
	/**
	* 根据主键删除
	* @param id
	* @return
	*/
	int deleteByPrimaryKey(Integer id);

	/**
	* 新增
	* @param record
	* @return
	*/
	int insert(Hospital record);

	/**
	* 非空新增
	* @param record
	* @return
	*/
	int insertSelective(Hospital record);

	/**
	* 主键查询
	* @param id
	* @return
	*/
	Hospital getByPrimaryKey(Integer id);

	/**
	* 非空更新
	* @param record
	* @return
	*/
	int updateByPrimaryKeySelective(Hospital record);

	/**
	* 更新
	* @param record
	* @return
	*/
	int updateByPrimaryKey(Hospital record);

	/**
	* 条件查询
	* @param query
	* @return
	*/
	List<Hospital> listByConditions(HospitalQuery query);

	/**
	* 查询总数
	* @param query
	* @return
	*/
	Long pageCount(HospitalQuery query);

	/**
	* 分页查询
	* @param query
	* @return
	*/
	@Paging
	Page<Hospital> pagingByConditions(HospitalQuery query);
}
